{$header} 
{$menu}
{$tiny}
{literal}
<script type="text/javascript" language="javascript">
	function getXMLHTTP() { //fuction to return the xml http object
        var xmlhttp=false;    
        try{
            xmlhttp=new XMLHttpRequest();
        }
        catch(e)    {        
            try{            
                xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch(e){
                try{
                req = new ActiveXObject("Msxml2.XMLHTTP");
                }
                catch(e1){
                    xmlhttp=false;
                }
            }
        }

        return xmlhttp;
    }


    function getcate(strURL)
    {       
     var req = getXMLHTTP(); // fuction to get xmlhttp object
     if (req)
     {
      req.onreadystatechange = function()
     {
      if (req.readyState == 4) { //data is retrieved from server
       if (req.status == 200) { // which reprents ok status                    
         document.getElementById('citydiv').innerHTML=req.responseText;
      }
      else
      { 
         alert("There was a problem while using XMLHTTP:\n");
      }
      }            
      }        
    req.open("GET", strURL, true); //open url using get method
    req.send(null);
     }
    }
</script>

{/literal}
<div id="content">
    <div id="tab" class="radius-top">
    	Excel &gt;&gt; Add
        <div class="clear"></div></div>
		{$form_open}             
        <table>
              <tbody>
             		 <tr>
                  <td align="left"><img src='{$url}images/pro.png' /> Import Product&nbsp;</td>
                  <td class="hotelInfo">
                  <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />  <input name="file" type="file" /></td>
                </tr>
                 <tr>
                  <td align="left"><img src='{$url}images/serial.png' /> Import Serial&nbsp;</td>
                  <td class="hotelInfo">
                  <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />  <input name="file1" type="file" /></td>
                </tr>
                    <tr>
                  <td align="left">Category&nbsp;</td>
                  <td class="hotelInfo">
                  <select name="cate" onChange="getcate('{$url}manage_excel/cate_no/'+this.value)">
                   {$cate}
                   </select>
                  
                  </td>
                </tr>
               <tr>
                  <td align="left">Product&nbsp;</td>
                  <td class="hotelInfo">
                  <div id="citydiv">
                     <select name="product">
                     	{$pro}
                     </select>
                </div></td>
 				</td>
                </tr>
                <tr>
                  <td align="left">Serial&nbsp;</td>
                  <td class="hotelInfo"><input type="text" name="serial" id="txtCategory5" value="{$serial}" />
                 
                  </td>
                </tr>
                 
            
              </tbody>
            </table>
            <div id="bnt" class="mws-form-row">
<input type="submit"  name="bntSubmit" class="mws-button green" value="Save"  />
              <!--  <input type="button" name="bntSubmit" class="mws-button green" value="Cancel" onClick="window.location='{$url}manage_product/picture_list/{$cid}';" />-->
  </div>
		{$form_close}
  </div>
  {$footer}